<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.10.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SimpleWindow: CanvasLayout.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">SimpleWindow
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.10.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){initNavTree('_canvas_layout_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="headertitle"><div class="title">CanvasLayout.h</div></div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno">    2</span> </div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno">    3</span><span class="preprocessor">#include &quot;LayoutHost.h&quot;</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno">    4</span> </div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno">    5</span><span class="keyword">namespace </span>sw</div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno">    6</span>{</div>
<div class="foldopen" id="foldopen00010" data-start="{" data-end="};">
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"><a class="line" href="structsw_1_1_canvas_layout_tag.html">   10</a></span>    <span class="keyword">struct </span><a class="code hl_struct" href="structsw_1_1_canvas_layout_tag.html">CanvasLayoutTag</a> {</div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"><a class="line" href="structsw_1_1_canvas_layout_tag.html#a66e509ca8ce039a228ccb15cba5aa509">   14</a></span>        <span class="keywordtype">float</span> <a class="code hl_variable" href="structsw_1_1_canvas_layout_tag.html#a66e509ca8ce039a228ccb15cba5aa509">left</a>;</div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno">   15</span> </div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"><a class="line" href="structsw_1_1_canvas_layout_tag.html#aebee142b9a9c5838c3fc2cb7a62374af">   19</a></span>        <span class="keywordtype">float</span> <a class="code hl_variable" href="structsw_1_1_canvas_layout_tag.html#aebee142b9a9c5838c3fc2cb7a62374af">top</a>;</div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno">   20</span> </div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"><a class="line" href="structsw_1_1_canvas_layout_tag.html#ad3e70c4391d2f7835676e5aae48a4377">   24</a></span>        <a class="code hl_function" href="structsw_1_1_canvas_layout_tag.html#ad3e70c4391d2f7835676e5aae48a4377">CanvasLayoutTag</a>();</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span> </div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"><a class="line" href="structsw_1_1_canvas_layout_tag.html#ae9def609feb263d19aa829b29010184c">   29</a></span>        <a class="code hl_function" href="structsw_1_1_canvas_layout_tag.html#ae9def609feb263d19aa829b29010184c">CanvasLayoutTag</a>(<span class="keywordtype">float</span> <a class="code hl_variable" href="structsw_1_1_canvas_layout_tag.html#a66e509ca8ce039a228ccb15cba5aa509">left</a>, <span class="keywordtype">float</span> <a class="code hl_variable" href="structsw_1_1_canvas_layout_tag.html#aebee142b9a9c5838c3fc2cb7a62374af">top</a>);</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno">   30</span> </div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"><a class="line" href="structsw_1_1_canvas_layout_tag.html#a5fcb2062d7a1239c4bd0f9fbf971718c">   34</a></span>        <a class="code hl_function" href="structsw_1_1_canvas_layout_tag.html#a5fcb2062d7a1239c4bd0f9fbf971718c">CanvasLayoutTag</a>(uint64_t layoutTag);</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno">   35</span> </div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"><a class="line" href="structsw_1_1_canvas_layout_tag.html#a54ca60a93c85b0c06ad1d848fed9af42">   39</a></span>        <span class="keyword">operator</span> uint64_t() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span>    };</div>
</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno">   41</span> </div>
<div class="foldopen" id="foldopen00045" data-start="{" data-end="};">
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"><a class="line" href="classsw_1_1_canvas_layout.html">   45</a></span>    <span class="keyword">class </span><a class="code hl_class" href="classsw_1_1_canvas_layout.html">CanvasLayout</a> : <span class="keyword">public</span> <a class="code hl_class" href="classsw_1_1_layout_host.html">LayoutHost</a></div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno">   46</span>    {</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno">   47</span>    <span class="keyword">public</span>:</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"><a class="line" href="classsw_1_1_canvas_layout.html#a8e0f36dd4b70eda9db6c2665b019a4e5">   51</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_canvas_layout.html#a8e0f36dd4b70eda9db6c2665b019a4e5">MeasureOverride</a>(<a class="code hl_struct" href="structsw_1_1_size.html">Size</a> &amp;availableSize) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno">   52</span> </div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"><a class="line" href="classsw_1_1_canvas_layout.html#ae537365bb8c5ab18ec497844d87f288d">   56</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_canvas_layout.html#ae537365bb8c5ab18ec497844d87f288d">ArrangeOverride</a>(<a class="code hl_struct" href="structsw_1_1_size.html">Size</a> &amp;finalSize) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno">   57</span>    };</div>
</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno">   58</span>}</div>
<div class="ttc" id="aclasssw_1_1_canvas_layout_html"><div class="ttname"><a href="classsw_1_1_canvas_layout.html">sw::CanvasLayout</a></div><div class="ttdoc">绝对位置布局方式</div><div class="ttdef"><b>Definition</b> CanvasLayout.h:46</div></div>
<div class="ttc" id="aclasssw_1_1_canvas_layout_html_a8e0f36dd4b70eda9db6c2665b019a4e5"><div class="ttname"><a href="classsw_1_1_canvas_layout.html#a8e0f36dd4b70eda9db6c2665b019a4e5">sw::CanvasLayout::MeasureOverride</a></div><div class="ttdeci">virtual void MeasureOverride(Size &amp;availableSize) override</div><div class="ttdoc">计算所需尺寸</div></div>
<div class="ttc" id="aclasssw_1_1_canvas_layout_html_ae537365bb8c5ab18ec497844d87f288d"><div class="ttname"><a href="classsw_1_1_canvas_layout.html#ae537365bb8c5ab18ec497844d87f288d">sw::CanvasLayout::ArrangeOverride</a></div><div class="ttdeci">virtual void ArrangeOverride(Size &amp;finalSize) override</div><div class="ttdoc">安排控件</div></div>
<div class="ttc" id="aclasssw_1_1_layout_host_html"><div class="ttname"><a href="classsw_1_1_layout_host.html">sw::LayoutHost</a></div><div class="ttdoc">用于托管元素的布局方式的对象类型，是所有布局方式类型的基类</div><div class="ttdef"><b>Definition</b> LayoutHost.h:11</div></div>
<div class="ttc" id="astructsw_1_1_canvas_layout_tag_html"><div class="ttname"><a href="structsw_1_1_canvas_layout_tag.html">sw::CanvasLayoutTag</a></div><div class="ttdoc">绝对位置布局方式的布局标记</div><div class="ttdef"><b>Definition</b> CanvasLayout.h:10</div></div>
<div class="ttc" id="astructsw_1_1_canvas_layout_tag_html_a5fcb2062d7a1239c4bd0f9fbf971718c"><div class="ttname"><a href="structsw_1_1_canvas_layout_tag.html#a5fcb2062d7a1239c4bd0f9fbf971718c">sw::CanvasLayoutTag::CanvasLayoutTag</a></div><div class="ttdeci">CanvasLayoutTag(uint64_t layoutTag)</div><div class="ttdoc">从LayoutTag创建</div></div>
<div class="ttc" id="astructsw_1_1_canvas_layout_tag_html_a66e509ca8ce039a228ccb15cba5aa509"><div class="ttname"><a href="structsw_1_1_canvas_layout_tag.html#a66e509ca8ce039a228ccb15cba5aa509">sw::CanvasLayoutTag::left</a></div><div class="ttdeci">float left</div><div class="ttdoc">左边</div><div class="ttdef"><b>Definition</b> CanvasLayout.h:14</div></div>
<div class="ttc" id="astructsw_1_1_canvas_layout_tag_html_ad3e70c4391d2f7835676e5aae48a4377"><div class="ttname"><a href="structsw_1_1_canvas_layout_tag.html#ad3e70c4391d2f7835676e5aae48a4377">sw::CanvasLayoutTag::CanvasLayoutTag</a></div><div class="ttdeci">CanvasLayoutTag()</div><div class="ttdoc">左边顶边均为0</div></div>
<div class="ttc" id="astructsw_1_1_canvas_layout_tag_html_ae9def609feb263d19aa829b29010184c"><div class="ttname"><a href="structsw_1_1_canvas_layout_tag.html#ae9def609feb263d19aa829b29010184c">sw::CanvasLayoutTag::CanvasLayoutTag</a></div><div class="ttdeci">CanvasLayoutTag(float left, float top)</div><div class="ttdoc">指定左边和顶边</div></div>
<div class="ttc" id="astructsw_1_1_canvas_layout_tag_html_aebee142b9a9c5838c3fc2cb7a62374af"><div class="ttname"><a href="structsw_1_1_canvas_layout_tag.html#aebee142b9a9c5838c3fc2cb7a62374af">sw::CanvasLayoutTag::top</a></div><div class="ttdeci">float top</div><div class="ttdoc">顶边</div><div class="ttdef"><b>Definition</b> CanvasLayout.h:19</div></div>
<div class="ttc" id="astructsw_1_1_size_html"><div class="ttname"><a href="structsw_1_1_size.html">sw::Size</a></div><div class="ttdoc">尺寸</div><div class="ttdef"><b>Definition</b> Size.h:11</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_01fcd3835fb4e7d9331b722d86291b65.html">sw</a></li><li class="navelem"><a class="el" href="dir_ed5f6ece24ffcc4307a76d27c2494db3.html">inc</a></li><li class="navelem"><b>CanvasLayout.h</b></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.10.0 </li>
  </ul>
</div>
</body>
</html>
